package com.mall.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.mall.bean.Collect;
import com.mall.bean.User;
import com.mall.dao.CollectionDao;
import com.mall.service.ICollectionService;

@Service("collectionService")
public class CollectionServiceImpl implements ICollectionService {


	@Resource
	private CollectionDao collectionDao;

	@Override
	public int addCollection(Collect collect) {
		// TODO Auto-generated method stub
		return collectionDao.addCollection(collect);
	}

	@Override
	public boolean isCollection(Collect collect) {
		// TODO Auto-generated method stub
		return collectionDao.isCollection(collect);
	}

	@Override
	public List<User> findAllCol(Collect collect) {
		// TODO Auto-generated method stub
		return collectionDao.findAllCol(collect);
	}

}
